package com.imooc.bilibili.domain.video;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 视频操作表
 * </p>
 *
 * @author gcq
 * @since 2022-06-10
 */
@Data
@TableName("t_video_operation")
public class VideoOperation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 视频id
     */
    @TableField(value = "videoId")
    private Long videoId;

    /**
     * 操作类型：0点赞、1收藏、2投币
     */
    @TableField(value = "operationType")
    private String operationType;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    @TableField(exist = false)
    private float value;
}
